class CabinetLocation {
  int id = 0;
  String name = "";

  CabinetLocation({required this.name});

  CabinetLocation.fromJson(dynamic json) {
    id = json['ID'];
    name = json['Name'];
  }

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (id != 0) {
      map['ID'] = id;
    }
    map['Name'] = name;
    return map;
  }
}
